<template>
  <span>{{ modelValue }}</span>
</template>

<script setup lang="ts">
import { ref } from 'vue'
//声明属性
defineProps({
  modelValue: {
    type: String,
    default: ''
  }
})

let modelValue = ref('wang')
//声明事件消息
const emits = defineEmits<{
  (e: 'update:modelValue', value: string): void
}>()

// const handler = (e) => {
//   text.value = e.target.value
// }
</script>

<style scoped></style>
